Skip to content

Conversation

satvu
Copy link
Member

@satvu satvu commented Sep 25, 2025

Issue describing the changes in this PR

resolves #11284

Pull request checklist

IMPORTANT: Currently, changes must be backported to the in-proc branch to be included in Core Tools and non-Flex deployments.

  • Backporting to the in-proc branch is not required
    • Otherwise: Link to backporting PR
  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes do not require diagnostic events changes
    • Otherwise: I have added/updated all related diagnostic events and their documentation (Documentation issue linked to PR)
  • I have added all required tests (Unit tests, E2E tests)

@satvu satvu requested a review from a team as a code owner September 25, 2025 23:59
@Copilot Copilot AI review requested due to automatic review settings September 25, 2025 23:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds duplicate function metadata detection and handling to the Sync Triggers functionality, ensuring only the first occurrence of duplicate function names is processed.

Key changes:

  • Implements deduplication logic in the sync triggers payload generation
  • Adds comprehensive test coverage for the duplicate handling behavior
  • Removes unused import from FunctionMetadataExtensions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs Adds GroupBy logic to deduplicate function metadata by name, keeping first occurrence
test/WebJobs.Script.Tests.Integration/Management/FunctionsSyncManagerTests.cs Adds test case to verify deduplication behavior with comprehensive setup and assertions
src/WebJobs.Script.WebHost/Extensions/FunctionMetadataExtensions.cs Removes unused Microsoft.Azure.WebJobs.Logging import

@satvu satvu requested a review from mathewc September 26, 2025 00:02
@satvu satvu requested a review from soninaren September 26, 2025 22:07
@satvu satvu requested a review from mathewc September 26, 2025 22:16
@satvu
Copy link
Member Author

satvu commented Oct 6, 2025

@microsoft-github-policy-service rerun

2 similar comments
@jviau
Copy link
Contributor

jviau commented Oct 6, 2025

@microsoft-github-policy-service rerun

@liliankasem
Copy link
Member

@microsoft-github-policy-service rerun

@satvu satvu closed this Oct 6, 2025
@satvu satvu reopened this Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for duplicate function names before creating the sync triggers payload
7 participants